package View;

import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.border.Border;

/**
 *
 * @author tg300
 */
public class SquareView extends JLabel{

    private int number;
    private int view;
    private Border border = BorderFactory.createLineBorder(Color.black);
    
    public SquareView (int m, int n) {
        number = m;
        view = n;
        
        //JLabel squareNum = new JLabel("" + view);
        //this.add(squareNum);
        this.setText(" " + n);
        this.setBackground(Color.white);
        this.setBorder(border);
    }
    
    public int getNumber() {
        return number;
    }
    
    public int getView() {
        return view;
    }
}
